package com.lct.random;

import java.util.Random;

public class RandomDemo1 {
    public static void main(String[] args) {
        Random r = new Random();

        //创建 0 - 9的随机数
        int number = r.nextInt(10);

        System.out.println(number);
    }
}
